, it refers to the data in objectrepository. You can also write the parameters directly.
4. obj_getpropertyvalue (objtype, objident, objproperty)
Note:
Call the getroproperty method of the relevant object (all objects are supported)
Example:
Obj_getpropertyvalue ("^ webedit", "^ value", "$ username ")
There are two ^ symbols. The ^ symbol in the first parameter represents the test object. The ^ symbol in the second parameter, it indicates the relevant property value in the test object (that is,
controls, So Link ("Jobs"). fireevent "ondblclick" should be used"Http://bbs.51testing.com/thread-162611-1-24.htmlBatch Delete qtpTestResult file: Start> Programs> QuickTest Professional> Tools>TestResults Deletion Tool (QTP9.0)Http://bbs.51testing.com/thread-71155-1-24.htmlIn the drop-down box, why does WebList become a webelement? You can refer to tools> Web Events Recording Configuration, where you can capture
of ListControls defined in the System. Web. UI. WebControls project ). With this code, I can compile and run the WebLookupList control test. Now the test should pass smoothly. I can add another test for WebLookupList to test the actual behavior of the Clear method:
[Test]public void ShouldClearUnderlyingList(){ListControl webList = new DropDownList();ILookupList list = new WebLookupList(webList);webList.It
the underlying ListControl (the base class for some listcontrols defined in the System.Web.UI.WebControls project). With this code, I can compile and run the WebLookupList control test, and now the test should pass smoothly. I can add another test for weblookuplist to test the actual behavior of the Clear method:[Test]public void Shouldclearunderlyinglist (){ListControl weblist = new DropDownList ();ILookupList list = new WebLookupList (
click:)WebelementWebelement is mainly used to verify the correctness of the data, such as the span tag in the example above, by including the contents of the Div,span,p tags in the page.
1234
If Browser ("Web Object Demo"). Page ("Web Object Demo") _. Webelement ("password"). Getroproperty ("innerhtml") = "password" ThenMsgBox "OK"End If
WeblistI identified the drop-down box in the page as a Weblist object and added th
());
Tv_toptitle.settext (title);
The title information is stored in the Weblist, the page returned with the
if (!weblist.isempty ()) {
//Compare the last item URL is the same as the current page, do not add, the same does not add
if (! Weblist.get (Weblist.size ()-1). Url.equals (Mwebview.geturl ()) {
Webinfo info = new Webinfo (Mwebview.
Copy Code code as follows:
/**
* Get a picture path in a replacement article
* @param string $xstr content
* @param string $keyword Create a file name for a photo
* @param string $oriweb URL
* @return String
*
*/
function replaceimg ($xstr, $keyword, $oriweb) {
Save path
$d = Date (' Ymd ', Time ());
$DIRSLSITSS = '/var/www/weblist/uploads/'. $keyword. ' /'. $d;//whether the classification exists
if (!is_dir ($DIRSLSITSS)) {
@mkdir
, tabstrip, bar, vscrollbaradv, hscrollbaradv, expandablepanel
Web
Browser, page, weblist, webtable, webcheckbox, webedit
Yui
Calendar, able, Slider, Treeview
Extjs
Checktree, ComboBox, form, grid, menu
VB ActiveX
Msflexgrid, vblabel, vblistview, and DataGrid
Codejock Xtreme suite
Datepicker, propertygrid, taskpanel, shortcutbar, and reportcontrol
XP suiteFlex
Flextextarea, flexcheckbox
(More controls support ongoing development and updates ..
Webarea
Getroproperty
Webbuttion
Mouseover
Webcheckbox
Rowcount
Webedit
Select
Weblist
Set
Webradiogroup
Setproperty
Webtable
Submit
Example 1: Get the value in the cell
Thistext = browser (...). Page (...). Frame .(...). Webtable ("sample"). getcelldata (2, 1)
Example 2: Get the image name
Objectname = browser (...). Page (...). Image ("find"). getproperty ("na
")Set envstreamfile = FSO. createtextfile (envpathname)Envstreamfile. Write envstreamSet envstreamfile = nothingSet FSO = nothingEnd Function
Call the XML file automatically generated above to dynamically load Environment Variables
Environment.LoadFromFile "C:\readXML\Login.xml"msgbox Environment.Value("username")
Note:
There are two types of dynamic loading files: [*. xml] and [*. INI].
Only one file type can be loaded statically: [*. xml]
First in qtp 5. X and 6. when X is used, qtp uses
webtable as an example, getcelldata does not provide better performance than dom-based access.
Performance increase in table lookup functions qtp
Http://rajivkumarnandvani.wordpress.com/2009/05/03/performance-increase-in-table-lookup-functions-qtp/
55. weblist control processing:
Work with list box qtp
Http://rajivkumarnandvani.wordpress.com/2009/05/03/work-with-list-box-qtp/
56. Processing of text box controls:
Work with text box (Windows winedit
This article is a detailed analysis of the implementation code of replacing image acquisition with local in php collection articles. For more information, see
The code is as follows:
/*** Obtain the image path in the replacement document.* @ Param string $ xstr content* @ Param string $ name of the photo file created by keyword* @ Param string $ oriweb URL* @ Return string**/Function replaceimg ($ xstr, $ keyword, $ oriweb ){// Save path$ D = date ('ymmd', time ());$ Dirslsitss = '/var/www/
This article is to the PHP collection article in the picture to get replaced with the local implementation code for a detailed analysis of the introduction, the need for a friend reference
Copy CodeThe code is as follows:
/*** Get the picture path in the replacement article* @param string $xstr content* @param string $keyword Create a file name for the photo* @param string $oriweb URL* @return String**/function replaceimg ($xstr, $keyword, $oriweb) {Save path$d = Date (' Ymd ', Time ());$DIRSLSI
Our website now uses some tools to monitor whether the website server can be accessed, but not the status of the website. Next I will recommend you to use shell to monitor the website status script in linux.
Today, I wrote shell monitoring for my website, so I don't know if my website goes down. This script checks the webpage status and webpage connection time separately, and can be expanded as needed, very powerful.Script content:Vi check-web.sh
The Code is as follows:
Copy code
Php downloads the image address from the collected content and replaces the local address,
Get all the addresses in the string to an array. We use the preg_match_all function.
The Code is as follows:$ Str = '$ Pattern = "/Preg_match_all ($ pattern, $ str, $ match); print_r ($ match );?>
Result
Array([0] => Array([0] => )[1] => Array([0] => upfiles/2009/07/1246430143_1.jpg))
With the core functions above, we can do the following.
The Code is as follows:/*** Obtain the image path in the replacem
This article is a detailed analysis of the implementation code of replacing Image Acquisition with local in php collection articles. For more information, see
This article is a detailed analysis of the implementation code of replacing Image Acquisition with local in php collection articles. For more information, see
The Code is as follows:
/*** Obtain the image path in the replacement document.* @ Param string $ xstr content* @ Param string $ name of the photo file created by keyword* @ P
This article is the PHP acquisition of the article in the image acquisition replacement to the local implementation code for a detailed analysis of the introduction, the need for friends under the reference
copy code code as follows:
/** * Gets the path to replace the picture in the article * @param string $xstr content * @param string $keyword Create a file name for the photo * @param string $oriweb URL * @return String * */ function replaceimg ($xstr, $keyword, $oriweb) { //save p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.